//
// Created by Castle-Moriarty on 2025/11/5.
//
#include "head/common.h"

// 绘制菜单的函数
void showMainMenu() {
    system("cls"); // 清空屏幕内容

    cout << "-----------------------------------" << endl;
    cout << "|========= 欢迎使用记账系统 =========|" << endl;
    cout << "|                                 |" << endl;
    cout << "|************* 1 记账 *************|" << endl;
    cout << "|************* 2 查询 *************|" << endl;
    cout << "|************* 3 退出 *************|" << endl;
    cout << "|_________________________________|" << endl;

    cout << "\n请选择(1 - 3): ";
}

// 记账菜单
void showAccountMenu() {
    cout << "-----------------------------------" << endl;
    cout << "|============ 选择记账种类 ===========|" << endl;
    cout << "|                                   |" << endl;
    cout << "|***********  1 收  入    **********|" << endl;
    cout << "|***********  2 支  出    **********|" << endl;
    cout << "|*********** 3 返回主菜单  ***********|" << endl;
    cout << "|___________________________________|" << endl;

    cout << "\n请选择(1 - 3): ";
}

// 查询菜单
void showQueryMenu() {
    cout << "-----------------------------------" << endl;
    cout << "|============ 选择查询条件 ===========|" << endl;
    cout << "|                                   |" << endl;
    cout << "|*********** 1 统计所有账目 **********|" << endl;
    cout << "|*********** 2 统 计 收 入 **********|" << endl;
    cout << "|*********** 3 统 计 支 出 **********|" << endl;
    cout << "|*********** 4 返回主菜单  ***********|" << endl;
    cout << "|___________________________________|" << endl;

    cout << "\n请选择(1 - 4): ";

}
